\(\int \frac {(c-c \sec (e+f x))^2}{(a+a \sec (e+f x))^{5/2}} \, dx\) [82]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (warning: unable to verify)
   Fricas [A] (verification not implemented)
   Sympy [F]
   Maxima [F]
   Giac [F(-2)]
   Mupad [F(-1)]

Optimal result

Integrand size = 28, antiderivative size = 189 \[ \int \frac {(c-c \sec (e+f x))^2}{(a+a \sec (e+f x))^{5/2}} \, dx=\frac {2 c^2 \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{a^{5/2} f}-\frac {11 c^2 \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {2} \sqrt {a+a \sec (e+f x)}}\right )}{4 \sqrt {2} a^{5/2} f}-\frac {3 c^2 \sec ^2\left (\frac {1}{2} (e+f x)\right ) \sin (e+f x)}{8 a^2 f \sqrt {a+a \sec (e+f x)}}-\frac {c^2 \cos (e+f x) \sec ^4\left (\frac {1}{2} (e+f x)\right ) \sin (e+f x)}{4 a^2 f \sqrt {a+a \sec (e+f x)}} \]

[Out]

2*c^2*arctan(a^(1/2)*tan(f*x+e)/(a+a*sec(f*x+e))^(1/2))/a^(5/2)/f-11/8*c^2*arctan(1/2*a^(1/2)*tan(f*x+e)*2^(1/
2)/(a+a*sec(f*x+e))^(1/2))/a^(5/2)/f*2^(1/2)-3/8*c^2*sec(1/2*f*x+1/2*e)^2*sin(f*x+e)/a^2/f/(a+a*sec(f*x+e))^(1
/2)-1/4*c^2*cos(f*x+e)*sec(1/2*f*x+1/2*e)^4*sin(f*x+e)/a^2/f/(a+a*sec(f*x+e))^(1/2)

Rubi [A] (verified)

Time = 0.29 (sec) , antiderivative size = 189, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {3989, 3972, 481, 541, 536, 209} \[ \int \frac {(c-c \sec (e+f x))^2}{(a+a \sec (e+f x))^{5/2}} \, dx=\frac {2 c^2 \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a \sec (e+f x)+a}}\right )}{a^{5/2} f}-\frac {11 c^2 \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {2} \sqrt {a \sec (e+f x)+a}}\right )}{4 \sqrt {2} a^{5/2} f}-\frac {3 c^2 \sin (e+f x) \sec ^2\left (\frac {1}{2} (e+f x)\right )}{8 a^2 f \sqrt {a \sec (e+f x)+a}}-\frac {c^2 \sin (e+f x) \cos (e+f x) \sec ^4\left (\frac {1}{2} (e+f x)\right )}{4 a^2 f \sqrt {a \sec (e+f x)+a}} \]

[In]

Int[(c - c*Sec[e + f*x])^2/(a + a*Sec[e + f*x])^(5/2),x]

[Out]

(2*c^2*ArcTan[(Sqrt[a]*Tan[e + f*x])/Sqrt[a + a*Sec[e + f*x]]])/(a^(5/2)*f) - (11*c^2*ArcTan[(Sqrt[a]*Tan[e +
f*x])/(Sqrt[2]*Sqrt[a + a*Sec[e + f*x]])])/(4*Sqrt[2]*a^(5/2)*f) - (3*c^2*Sec[(e + f*x)/2]^2*Sin[e + f*x])/(8*
a^2*f*Sqrt[a + a*Sec[e + f*x]]) - (c^2*Cos[e + f*x]*Sec[(e + f*x)/2]^4*Sin[e + f*x])/(4*a^2*f*Sqrt[a + a*Sec[e
 + f*x]])

Rule 209

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*ArcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rule 481

Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[(-a)*e^(
2*n - 1)*(e*x)^(m - 2*n + 1)*(a + b*x^n)^(p + 1)*((c + d*x^n)^(q + 1)/(b*n*(b*c - a*d)*(p + 1))), x] + Dist[e^
(2*n)/(b*n*(b*c - a*d)*(p + 1)), Int[(e*x)^(m - 2*n)*(a + b*x^n)^(p + 1)*(c + d*x^n)^q*Simp[a*c*(m - 2*n + 1)
+ (a*d*(m - n + n*q + 1) + b*c*n*(p + 1))*x^n, x], x], x] /; FreeQ[{a, b, c, d, e, q}, x] && NeQ[b*c - a*d, 0]
 && IGtQ[n, 0] && LtQ[p, -1] && GtQ[m - n + 1, n] && IntBinomialQ[a, b, c, d, e, m, n, p, q, x]

Rule 536

Int[((e_) + (f_.)*(x_)^(n_))/(((a_) + (b_.)*(x_)^(n_))*((c_) + (d_.)*(x_)^(n_))), x_Symbol] :> Dist[(b*e - a*f
)/(b*c - a*d), Int[1/(a + b*x^n), x], x] - Dist[(d*e - c*f)/(b*c - a*d), Int[1/(c + d*x^n), x], x] /; FreeQ[{a
, b, c, d, e, f, n}, x]

Rule 541

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_.)*((e_) + (f_.)*(x_)^(n_)), x_Symbol] :> Simp[(
-(b*e - a*f))*x*(a + b*x^n)^(p + 1)*((c + d*x^n)^(q + 1)/(a*n*(b*c - a*d)*(p + 1))), x] + Dist[1/(a*n*(b*c - a
*d)*(p + 1)), Int[(a + b*x^n)^(p + 1)*(c + d*x^n)^q*Simp[c*(b*e - a*f) + e*n*(b*c - a*d)*(p + 1) + d*(b*e - a*
f)*(n*(p + q + 2) + 1)*x^n, x], x], x] /; FreeQ[{a, b, c, d, e, f, n, q}, x] && LtQ[p, -1]

Rule 3972

Int[cot[(c_.) + (d_.)*(x_)]^(m_.)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n_.), x_Symbol] :> Dist[-2*(a^(m/2 +
 n + 1/2)/d), Subst[Int[x^m*((2 + a*x^2)^(m/2 + n - 1/2)/(1 + a*x^2)), x], x, Cot[c + d*x]/Sqrt[a + b*Csc[c +
d*x]]], x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0] && IntegerQ[m/2] && IntegerQ[n - 1/2]

Rule 3989

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_.)*(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))^(n_.), x_Symbol] :> Di
st[((-a)*c)^m, Int[Cot[e + f*x]^(2*m)*(c + d*Csc[e + f*x])^(n - m), x], x] /; FreeQ[{a, b, c, d, e, f, n}, x]
&& EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && IntegerQ[m] && RationalQ[n] &&  !(IntegerQ[n] && GtQ[m - n, 0])

Rubi steps \begin{align*} \text {integral}& = \left (a^2 c^2\right ) \int \frac {\tan ^4(e+f x)}{(a+a \sec (e+f x))^{9/2}} \, dx \\ & = -\frac {\left (2 c^2\right ) \text {Subst}\left (\int \frac {x^4}{\left (1+a x^2\right ) \left (2+a x^2\right )^3} \, dx,x,-\frac {\tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{f} \\ & = -\frac {c^2 \cos (e+f x) \sec ^4\left (\frac {1}{2} (e+f x)\right ) \sin (e+f x)}{4 a^2 f \sqrt {a+a \sec (e+f x)}}-\frac {c^2 \text {Subst}\left (\int \frac {2-2 a x^2}{\left (1+a x^2\right ) \left (2+a x^2\right )^2} \, dx,x,-\frac {\tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{2 a^2 f} \\ & = -\frac {3 c^2 \sec ^2\left (\frac {1}{2} (e+f x)\right ) \sin (e+f x)}{8 a^2 f \sqrt {a+a \sec (e+f x)}}-\frac {c^2 \cos (e+f x) \sec ^4\left (\frac {1}{2} (e+f x)\right ) \sin (e+f x)}{4 a^2 f \sqrt {a+a \sec (e+f x)}}-\frac {c^2 \text {Subst}\left (\int \frac {10 a-6 a^2 x^2}{\left (1+a x^2\right ) \left (2+a x^2\right )} \, dx,x,-\frac {\tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{8 a^3 f} \\ & = -\frac {3 c^2 \sec ^2\left (\frac {1}{2} (e+f x)\right ) \sin (e+f x)}{8 a^2 f \sqrt {a+a \sec (e+f x)}}-\frac {c^2 \cos (e+f x) \sec ^4\left (\frac {1}{2} (e+f x)\right ) \sin (e+f x)}{4 a^2 f \sqrt {a+a \sec (e+f x)}}-\frac {\left (2 c^2\right ) \text {Subst}\left (\int \frac {1}{1+a x^2} \, dx,x,-\frac {\tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{a^2 f}+\frac {\left (11 c^2\right ) \text {Subst}\left (\int \frac {1}{2+a x^2} \, dx,x,-\frac {\tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{4 a^2 f} \\ & = \frac {2 c^2 \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{a^{5/2} f}-\frac {11 c^2 \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {2} \sqrt {a+a \sec (e+f x)}}\right )}{4 \sqrt {2} a^{5/2} f}-\frac {3 c^2 \sec ^2\left (\frac {1}{2} (e+f x)\right ) \sin (e+f x)}{8 a^2 f \sqrt {a+a \sec (e+f x)}}-\frac {c^2 \cos (e+f x) \sec ^4\left (\frac {1}{2} (e+f x)\right ) \sin (e+f x)}{4 a^2 f \sqrt {a+a \sec (e+f x)}} \\ \end{align*}

Mathematica [A] (verified)

Time = 1.52 (sec) , antiderivative size = 145, normalized size of antiderivative = 0.77 \[ \int \frac {(c-c \sec (e+f x))^2}{(a+a \sec (e+f x))^{5/2}} \, dx=-\frac {c^2 \left (22 \sqrt {2} \text {arctanh}\left (\frac {\sqrt {1-\sec (e+f x)}}{\sqrt {2}}\right ) \cos ^4\left (\frac {1}{2} (e+f x)\right ) \sec ^2(e+f x)-8 \text {arctanh}\left (\sqrt {1-\sec (e+f x)}\right ) (1+\sec (e+f x))^2+\sqrt {1-\sec (e+f x)} (7+3 \sec (e+f x))\right ) \tan (e+f x)}{4 f \sqrt {1-\sec (e+f x)} (a (1+\sec (e+f x)))^{5/2}} \]

[In]

Integrate[(c - c*Sec[e + f*x])^2/(a + a*Sec[e + f*x])^(5/2),x]

[Out]

-1/4*(c^2*(22*Sqrt[2]*ArcTanh[Sqrt[1 - Sec[e + f*x]]/Sqrt[2]]*Cos[(e + f*x)/2]^4*Sec[e + f*x]^2 - 8*ArcTanh[Sq
rt[1 - Sec[e + f*x]]]*(1 + Sec[e + f*x])^2 + Sqrt[1 - Sec[e + f*x]]*(7 + 3*Sec[e + f*x]))*Tan[e + f*x])/(f*Sqr
t[1 - Sec[e + f*x]]*(a*(1 + Sec[e + f*x]))^(5/2))

Maple [A] (warning: unable to verify)

Time = 3.55 (sec) , antiderivative size = 245, normalized size of antiderivative = 1.30

method result size
default \(-\frac {c^{2} \sqrt {-\frac {2 a}{\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}}\, \sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, \left (2 \left (\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1\right )^{\frac {3}{2}} \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )-3 \sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )-8 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {2}\, \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )}{\sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}}\right )+11 \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )+\sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\right )\right )}{8 a^{3} f}\) \(245\)
parts \(-\frac {c^{2} \sqrt {-\frac {2 a}{\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}}\, \sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, \left (2 \left (1-\cos \left (f x +e \right )\right )^{3} \sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, \csc \left (f x +e \right )^{3}-32 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {2}\, \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )}{\sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}}\right )-13 \sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )+43 \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )+\sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\right )\right )}{32 f \,a^{3}}+\frac {c^{2} \sqrt {-\frac {2 a}{\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}}\, \sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, \left (-2 \left (\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1\right )^{\frac {3}{2}} \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )-5 \sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )+5 \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )+\sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\right )\right )}{32 f \,a^{3}}-\frac {c^{2} \sqrt {-\frac {2 a}{\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}}\, \sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, \left (2 \left (\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1\right )^{\frac {3}{2}} \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )-3 \sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )+3 \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )+\sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\right )\right )}{16 f \,a^{3}}\) \(639\)

[In]

int((c-c*sec(f*x+e))^2/(a+a*sec(f*x+e))^(5/2),x,method=_RETURNVERBOSE)

[Out]

-1/8/a^3*c^2/f*(-2*a/((1-cos(f*x+e))^2*csc(f*x+e)^2-1))^(1/2)*((1-cos(f*x+e))^2*csc(f*x+e)^2-1)^(1/2)*(2*((1-c
os(f*x+e))^2*csc(f*x+e)^2-1)^(3/2)*(-cot(f*x+e)+csc(f*x+e))-3*((1-cos(f*x+e))^2*csc(f*x+e)^2-1)^(1/2)*(-cot(f*
x+e)+csc(f*x+e))-8*2^(1/2)*arctanh(2^(1/2)/((1-cos(f*x+e))^2*csc(f*x+e)^2-1)^(1/2)*(-cot(f*x+e)+csc(f*x+e)))+1
1*ln(csc(f*x+e)-cot(f*x+e)+((1-cos(f*x+e))^2*csc(f*x+e)^2-1)^(1/2)))

Fricas [A] (verification not implemented)

none

Time = 0.84 (sec) , antiderivative size = 645, normalized size of antiderivative = 3.41 \[ \int \frac {(c-c \sec (e+f x))^2}{(a+a \sec (e+f x))^{5/2}} \, dx=\left [-\frac {11 \, \sqrt {2} {\left (c^{2} \cos \left (f x + e\right )^{3} + 3 \, c^{2} \cos \left (f x + e\right )^{2} + 3 \, c^{2} \cos \left (f x + e\right ) + c^{2}\right )} \sqrt {-a} \log \left (-\frac {2 \, \sqrt {2} \sqrt {-a} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) - 3 \, a \cos \left (f x + e\right )^{2} - 2 \, a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )^{2} + 2 \, \cos \left (f x + e\right ) + 1}\right ) + 16 \, {\left (c^{2} \cos \left (f x + e\right )^{3} + 3 \, c^{2} \cos \left (f x + e\right )^{2} + 3 \, c^{2} \cos \left (f x + e\right ) + c^{2}\right )} \sqrt {-a} \log \left (\frac {2 \, a \cos \left (f x + e\right )^{2} + 2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + a \cos \left (f x + e\right ) - a}{\cos \left (f x + e\right ) + 1}\right ) + 4 \, {\left (7 \, c^{2} \cos \left (f x + e\right )^{2} + 3 \, c^{2} \cos \left (f x + e\right )\right )} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sin \left (f x + e\right )}{16 \, {\left (a^{3} f \cos \left (f x + e\right )^{3} + 3 \, a^{3} f \cos \left (f x + e\right )^{2} + 3 \, a^{3} f \cos \left (f x + e\right ) + a^{3} f\right )}}, \frac {11 \, \sqrt {2} {\left (c^{2} \cos \left (f x + e\right )^{3} + 3 \, c^{2} \cos \left (f x + e\right )^{2} + 3 \, c^{2} \cos \left (f x + e\right ) + c^{2}\right )} \sqrt {a} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{\sqrt {a} \sin \left (f x + e\right )}\right ) - 16 \, {\left (c^{2} \cos \left (f x + e\right )^{3} + 3 \, c^{2} \cos \left (f x + e\right )^{2} + 3 \, c^{2} \cos \left (f x + e\right ) + c^{2}\right )} \sqrt {a} \arctan \left (\frac {\sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{\sqrt {a} \sin \left (f x + e\right )}\right ) - 2 \, {\left (7 \, c^{2} \cos \left (f x + e\right )^{2} + 3 \, c^{2} \cos \left (f x + e\right )\right )} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sin \left (f x + e\right )}{8 \, {\left (a^{3} f \cos \left (f x + e\right )^{3} + 3 \, a^{3} f \cos \left (f x + e\right )^{2} + 3 \, a^{3} f \cos \left (f x + e\right ) + a^{3} f\right )}}\right ] \]

[In]

integrate((c-c*sec(f*x+e))^2/(a+a*sec(f*x+e))^(5/2),x, algorithm="fricas")

[Out]

[-1/16*(11*sqrt(2)*(c^2*cos(f*x + e)^3 + 3*c^2*cos(f*x + e)^2 + 3*c^2*cos(f*x + e) + c^2)*sqrt(-a)*log(-(2*sqr
t(2)*sqrt(-a)*sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*cos(f*x + e)*sin(f*x + e) - 3*a*cos(f*x + e)^2 - 2*a*cos
(f*x + e) + a)/(cos(f*x + e)^2 + 2*cos(f*x + e) + 1)) + 16*(c^2*cos(f*x + e)^3 + 3*c^2*cos(f*x + e)^2 + 3*c^2*
cos(f*x + e) + c^2)*sqrt(-a)*log((2*a*cos(f*x + e)^2 + 2*sqrt(-a)*sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*cos(
f*x + e)*sin(f*x + e) + a*cos(f*x + e) - a)/(cos(f*x + e) + 1)) + 4*(7*c^2*cos(f*x + e)^2 + 3*c^2*cos(f*x + e)
)*sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*sin(f*x + e))/(a^3*f*cos(f*x + e)^3 + 3*a^3*f*cos(f*x + e)^2 + 3*a^3
*f*cos(f*x + e) + a^3*f), 1/8*(11*sqrt(2)*(c^2*cos(f*x + e)^3 + 3*c^2*cos(f*x + e)^2 + 3*c^2*cos(f*x + e) + c^
2)*sqrt(a)*arctan(sqrt(2)*sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*cos(f*x + e)/(sqrt(a)*sin(f*x + e))) - 16*(c
^2*cos(f*x + e)^3 + 3*c^2*cos(f*x + e)^2 + 3*c^2*cos(f*x + e) + c^2)*sqrt(a)*arctan(sqrt((a*cos(f*x + e) + a)/
cos(f*x + e))*cos(f*x + e)/(sqrt(a)*sin(f*x + e))) - 2*(7*c^2*cos(f*x + e)^2 + 3*c^2*cos(f*x + e))*sqrt((a*cos
(f*x + e) + a)/cos(f*x + e))*sin(f*x + e))/(a^3*f*cos(f*x + e)^3 + 3*a^3*f*cos(f*x + e)^2 + 3*a^3*f*cos(f*x +
e) + a^3*f)]

Sympy [F]

\[ \int \frac {(c-c \sec (e+f x))^2}{(a+a \sec (e+f x))^{5/2}} \, dx=c^{2} \left (\int \left (- \frac {2 \sec {\left (e + f x \right )}}{a^{2} \sqrt {a \sec {\left (e + f x \right )} + a} \sec ^{2}{\left (e + f x \right )} + 2 a^{2} \sqrt {a \sec {\left (e + f x \right )} + a} \sec {\left (e + f x \right )} + a^{2} \sqrt {a \sec {\left (e + f x \right )} + a}}\right )\, dx + \int \frac {\sec ^{2}{\left (e + f x \right )}}{a^{2} \sqrt {a \sec {\left (e + f x \right )} + a} \sec ^{2}{\left (e + f x \right )} + 2 a^{2} \sqrt {a \sec {\left (e + f x \right )} + a} \sec {\left (e + f x \right )} + a^{2} \sqrt {a \sec {\left (e + f x \right )} + a}}\, dx + \int \frac {1}{a^{2} \sqrt {a \sec {\left (e + f x \right )} + a} \sec ^{2}{\left (e + f x \right )} + 2 a^{2} \sqrt {a \sec {\left (e + f x \right )} + a} \sec {\left (e + f x \right )} + a^{2} \sqrt {a \sec {\left (e + f x \right )} + a}}\, dx\right ) \]

[In]

integrate((c-c*sec(f*x+e))**2/(a+a*sec(f*x+e))**(5/2),x)

[Out]

c**2*(Integral(-2*sec(e + f*x)/(a**2*sqrt(a*sec(e + f*x) + a)*sec(e + f*x)**2 + 2*a**2*sqrt(a*sec(e + f*x) + a
)*sec(e + f*x) + a**2*sqrt(a*sec(e + f*x) + a)), x) + Integral(sec(e + f*x)**2/(a**2*sqrt(a*sec(e + f*x) + a)*
sec(e + f*x)**2 + 2*a**2*sqrt(a*sec(e + f*x) + a)*sec(e + f*x) + a**2*sqrt(a*sec(e + f*x) + a)), x) + Integral
(1/(a**2*sqrt(a*sec(e + f*x) + a)*sec(e + f*x)**2 + 2*a**2*sqrt(a*sec(e + f*x) + a)*sec(e + f*x) + a**2*sqrt(a
*sec(e + f*x) + a)), x))

Maxima [F]

\[ \int \frac {(c-c \sec (e+f x))^2}{(a+a \sec (e+f x))^{5/2}} \, dx=\int { \frac {{\left (c \sec \left (f x + e\right ) - c\right )}^{2}}{{\left (a \sec \left (f x + e\right ) + a\right )}^{\frac {5}{2}}} \,d x } \]

[In]

integrate((c-c*sec(f*x+e))^2/(a+a*sec(f*x+e))^(5/2),x, algorithm="maxima")

[Out]

integrate((c*sec(f*x + e) - c)^2/(a*sec(f*x + e) + a)^(5/2), x)

Giac [F(-2)]

Exception generated. \[ \int \frac {(c-c \sec (e+f x))^2}{(a+a \sec (e+f x))^{5/2}} \, dx=\text {Exception raised: TypeError} \]

[In]

integrate((c-c*sec(f*x+e))^2/(a+a*sec(f*x+e))^(5/2),x, algorithm="giac")

[Out]

Exception raised: TypeError >> an error occurred running a Giac command:INPUT:sage2:=int(sage0,sageVARx):;OUTP
UT:index.cc index_m i_lex_is_greater Error: Bad Argument Value

Mupad [F(-1)]

Timed out. \[ \int \frac {(c-c \sec (e+f x))^2}{(a+a \sec (e+f x))^{5/2}} \, dx=\int \frac {{\left (c-\frac {c}{\cos \left (e+f\,x\right )}\right )}^2}{{\left (a+\frac {a}{\cos \left (e+f\,x\right )}\right )}^{5/2}} \,d x \]

[In]

int((c - c/cos(e + f*x))^2/(a + a/cos(e + f*x))^(5/2),x)

[Out]

int((c - c/cos(e + f*x))^2/(a + a/cos(e + f*x))^(5/2), x)